<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
// 防止缓存
//Forces caches to obtain a new copy of the page from the origin server    
response.setHeader("Cache-Control","no-cache");     
//Directs caches not to store the page under any circumstance    
response.setHeader("Cache-Control","no-store");     
//HTTP 1.0 backward compatibility     
response.setHeader("Pragma","no-cache");     
//Causes the proxy cache to see the page as "stale"    
response.setDateHeader("Expires", 0); 
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- HTTP 1.1 -->
<meta http-equiv="Cache-Control" content="no-store"/>
<!-- HTTP 1.0 -->
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Proxy Spring,AC Web,chinatcc,acyuyin,AC语音，跃鸿" />
<meta name="description" content="代理平台版，让代理更简单。" />
<meta name="copyright" content= "上海跃鸿网络科技有限公司版权所有 Copyright (c) 2012" />
<meta name="viewport" content="minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, width=device-width, user-scalable=no" />
<meta name="msapplication-window" content="width=1024;height=768" />
<meta name="google-site-verification" content="ooeu0Ygs68PA-Vyx1AiufsVIVVbkU7RukGiAeXhSxlA" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="application-name" content="PROXY 代理平台" />

<title>登陆 - Proxy 代理平台</title>
<link href="<c:url value='/styles/css.css'/>" rel="stylesheet" type="text/css">
<link href="<c:url value='/styles/main.css'/>" rel="stylesheet" type="text/css">
<link href="<c:url value='/styles/login.css'  />" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<c:url value='/scripts/jquery-1.7.2.js'/>"></script> 
<script type="text/javascript" src="<c:url value='/scripts/jquery.cookies.2.2.0.min.js'/>"></script> 
<script type="text/javascript" src="<c:url value='/scripts/jquery/jquery-impromptu.4.0.min.js'/>"></script> 
<script type="text/javascript" src="<c:url value='/scripts/general.js' />"  charset="UTF-8"></script> 
<script type="text/javascript" src="<c:url value='/scripts/login.js'/>" charset="gbk"></script>
<script type="text/javascript">

function login(param)
{	
	$.post("<c:url value='/login/land.px'/>",param,
		function(data){
		
			if('1' == data)
			{
				if( $.cookies.test()){
					if (param.auto=="1") {
						$.cookies.set("proxy","{\"userName\" : \""+param.userName+"\",\"passWord\" : \""+param.passWord+"\",\"auto\" : \""+param.auto+"\"}");
					} else {
						$.cookies.del("proxy");
					}
				}	
				window.location.href="<c:url value='/land/index.jsp'/>";
			}
			else if( '0' == data)
			{
				//$.prompt('帐号密码不正确,请重新输入',{ buttons: { '确认': true } ,callback: function(){ param={"userName":"","passWord":"","auto":"0"};passWord.select(); }});
				alert("帐号密码不正确,请重新输入");
				return;
			}
			else if('-1' == data)
			{	
				//$.prompt('出现异常,请与管理员联系',{ buttons: { '确认': true } ,callback: function(){ param={"userName":"","passWord":"","auto":"0"};passWord.select(); }});
				alert("出现异常,请与管理员联系");
				return;
			} 
			else if('2' == data)
			{
				alert("您的帐户,已经过期请拨打0000-111");
				return;
			}
			else if('3' == data)
			{
				alert("终端用户,请从TCC上登陆");
				return;
			}
		});
}

function showForbid()
{
       forbid.style.width = document.body.clientWidth;
	   forbid.style.height = document.body.clientHeight;
	   forbid.style.visibility = "visible";
}
</script>



    <script type="text/javascript">
        var docEle = function() {
            return document.getElementById(arguments[0]) || false;
        }

        
    </script>
</head>

<body  id="mainBody1" style="margin-top: 200px;">
                        
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
      <div class="maincontainer">
        <ul>
          <li class="logo"></li>
          <li class="login-bg">
            <div class="login">
              <ul>
                <li><span class="text1">用户名</span></li>
                <li class="login-input">
                  <input name="textfield" type="text" class="input1" id="userName">
                </li>
                <li><span class="text1">密码</span></li>
                <li class="login-input">
                  <input name="textfield" type="password" class="input1" id="passWord">
                </li>
                <li>
                  <div class="login-check">
                    <ul>
                      <li class="check" id="autoCheck" value='0'><!-- <img alt="" src="/Proxy/imgs/check2.png">  --><span class="text2">一周内自动登录</span></li>
                      <li class="remember"><span class="text3"><a href="#" id="findPass">忘记密码？</a></span></li>
                    </ul>
                  </div>
                  <div class="login-button" id="submit"><img src="<c:url value='/imgs/button-login.png'/>"></div>
                </li>
              </ul>
            </div>
          </li>
          <li class="shadow">
          		
<div class="layercontainer" style="margin-top : -250px; display: none; position: absolute; z-index: 999;" id="password-layer1">
  <div class="layertop">
    <div class="layertop-title">提示信息</div>
  </div>
  <div class="layermain">
    <div class="layerlist3">
      <div class="layerlist-title"><span class="text7">用户名：</span></div>
      <div class="layerlist-content"><input type="text" class="input2" style="width:290px" id="userName2"></div>
    </div>
    <div class="layerlist3">
      <div class="layerlist-title"><span class="text7">验证码：</span></div>
      <div class="layerlist-content"><input type="text" class="input2" style="width:290px" id="validate"></div>
    </div>
    <div class="layerlist3">
      <div class="layerlist-title">&nbsp;</div>
      <div class="layerlist-content"><img id="imgcode" alt="" src="<c:url value='/until/imagecode.px' />"/>&nbsp;&nbsp;<span class="text7"><a href="#" id="imghref">看不清，换一张</a></span></div>
    </div>
    <div class="layer-button"><img src="<c:url value='/imgs/button-confirm.gif'/>" id="confrim"/>&nbsp;&nbsp;<img src="<c:url value='/imgs/button-close.gif'/>" id="close"/></div>
  </div>
</div>



 <div class="layercontainer" style="margin-top : -250px; display: none; position: absolute; z-index: 999;" id="password-layer2">
  <div class="layertop">
    <div class="layertop-title">提示信息</div>
  </div>
  <div class="layermain">
    <div class="infolayer">
      <div class="infolayer-icon"><img src="<c:url value='/imgs/icon8.png' /> "/></div>
      <div class="infolayer-text"><span class="text9"><strong>重置密码已经发送至您的邮箱,注意查收 </strong></span><span class="text7"><br />
  请查看你的邮箱<br />
  如未收到邮件，请稍后刷新重试</span></div>
    </div>
    <div class="layer-button" id="close2" ><img src="<c:url value='/imgs/button-close.gif' />"  /></div>
  </div>
</div>

          		
          
          </li>
        </ul>
      </div>
    </td>
  </tr>
</table>

</body>
 <script type="text/javascript">
        var Sys = {};
        var ua = navigator.userAgent.toLowerCase();
        var s;
        (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
        (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
        (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
        (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
        (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
        //以下进行测试
        if (Sys.ie){
            //alert('IE: ' + Sys.ie);
         }
        if (Sys.firefox) { //alert('Firefox: ' + Sys.firefox);
            $("#mainBody1").css({"margin-top":"-100px"});
            }
        if (Sys.chrome) { //document.write('Chrome: ' + Sys.chrome);
            }
        //if (Sys.opera) {document.write('Opera: ' + Sys.opera);}
        //if (Sys.safari){document.write('Safari: ' + Sys.safari);}
        
    </script> 
</html>
